//===================================
//File: MListEl.cpp
//Description elem of Multilist class
//Name: Smirnova O.P.
//Date: 10.02.12, v.1.0
//===================================
#ifndef MLISTEL_H
#define MLISTEL_H
template <class T>
class MultiListElem{
private:
	T value;
	MultiListElem<T>* elema;
	MultiListElem<T>* elemb;
	MultiListElem<T>* elemc;
public:
	MultiListElem(T value)
	{
	     //	cout << "MultiListElem:" << endl;
		this->value = value;
		this->elema = 0;
		this->elemb = 0;
		this->elemc = 0;
	      //	cout << "value=" << value << endl;
	       //	cout << "MultiListElem." << endl;
	}

	~MultiListElem()
{
       //	cout << "~MultiListElem" << endl;
}
	//setters
	void setValue(T value)
	{
		this->value = value;
	}
	void setElema(MultiListElem<T>* elema)
	{
		this->elema = elema;
	}
	void setElemb(MultiListElem<T>* elemb)
	{
		this->elemb = elemb;
	}
	void setElemc(MultiListElem<T>* elemc)
	{
		this->elemc = elemc;
	}
	//getters
	T getValue(){return value;}
	MultiListElem<T>* getElema(){return elema;}
	MultiListElem<T>* getElemb(){return elemb;}
	MultiListElem<T>* getElemc(){return elemc;}
};
#endif





